<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>展开语法在对象中的使用</title>
</head>
<body>
    <script>
        let user = {
            name : "xiasnn",
            age : 18
        };

        let student = {...user,score : 99};
        console.log(student);



        function show(param){
            let config = {
                type : "*.jpg,*.png",
                size : 1000
            };
            return {...config,...param};
        }
        console.log(show({type:"*.gif"}));
    </script>
</body>
</html>